package com.superitem.school.service;

import com.superitem.school.mapper.UserMapper;
import com.superitem.school.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Title: UserService
 * @Author Charles
 * @Package com.superitem.school.service
 * @Date 2023/7/6 14:55
 */
@Service
public class UserService  {
    @Autowired
    private UserMapper userMapper;

    public User queryById(Integer id){
        return userMapper.selectByPrimaryKey(id);
    }
}
